package com.example.chao.myphotosearch;

import android.app.Application;

import com.example.chao.myphotosearch.utils.ImagePipelineConfigUtils;
import com.facebook.drawee.backends.pipeline.Fresco;
import com.jude.utils.JUtils;

import cn.bmob.v3.Bmob;

/**
 * Created by chao on 2016/3/15.
 */
public class PhotoSearchApp extends Application {
    private static PhotoSearchApp mInstance;

    public static PhotoSearchApp getInstance(){
        return mInstance;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        Fresco.initialize(this, ImagePipelineConfigUtils.getDefaultImagePipelineConfig(this));
        Bmob.initialize(this, "633edd745d4d8630d88c73a16440cb9a");
        JUtils.initialize(this);
        mInstance = this;
    }
}
